<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>淘宝类目</title>
<%@ include file="/common/include.jsp"%>
<link href="/summer/template/admin/css/list.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/summer/template/admin/js/list.js"></script>
<meta name="Author" content="Summer++ Team" />
<meta name="Copyright" content="SUMMER" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
</head>
<body class="list">
<div class="body">
<div class="listBar">
<h1><span class="icon">&nbsp;</span>淘宝类目列表<span class="pageInfo">总记录数:  ${pager.totalCount}
(共 ${pager.pageCount}页)</span></h1>
</div>
<form id="listForm" action="item_cat!list.action" method="post">
<div class="operateBar"><input type="button" class="addButton"
	onclick="location.href='item_cat!add.action'" value="添加淘宝类目" /> <label>查找:</label>
<select name="pager.property">
					<option value="name" >
						名称
					</option>
					
</select>
<label class="searchText"><input type="text" id="pager11" width="200"
	name="pager.keyword" value='${pager.keyword}' /></label><input type="button"
	id="searchButton" class="searchButton" value="" onclick="submit()" /> <label>每页显示:</label>
<select name="pager.pageSize" id="pageSize">
<option value="5"
		<s:if test="pager.pageSize==5">selected="selected" </s:if>>
	5</option>
	<option value="10"
		<s:if test="pager.pageSize==10">selected="selected" </s:if>>
	10</option>
	<option value="20"
		<s:if test="pager.pageSize==20">selected="selected" </s:if>>
	20</option>
	<option value="50"
		<s:if test="pager.pageSize==50">selected="selected" </s:if>>
	50</option>
	<option value="100"
		<s:if test="pager.pageSize==100">selected="selected" </s:if>>
	100</option>
</select>
</div>
<table class="listTable">
	<tr>
		<th class="check"><input type="checkbox" class="allCheck" /></th>
					<th><span class="sort" name="id">编号</span></th>
					<th><span class="sort" name="createDate">创建时间</span></th>
					<th><span class="sort" name="cid">类目编码</span></th>
					<th><span class="sort" name="is_parent">是否父类</span></th>
					<th><span class="sort" name="item_cat">上一级</span></th>
					<th><span class="sort" name="name">类目名称</span></th>
					<th><span class="sort" name="sortOrder">类目排序</span></th>
					<th><span class="sort" name="status">类目状态</span></th>
		
		<th>操作</th>
	</tr>

	<s:iterator value="pager.list" id="item_cat">
		<tr>
			<td><input type="checkbox" name="ids" value="<s:property value="id" />" /></td>
		
					<td><s:property value="id" /></td> 
					<td><s:property value="createDate" /></td> 
					<td><s:property value="cid" /></td> 
					<td><s:property value="is_parent" /></td> 
					<td><s:property value="item_cat" /></td> 
					<td><s:property value="name" /></td> 
					<td><s:property value="sortOrder" /></td> 
					<td><s:property value="status" /></td> 

			<td>     
				<a href="item_cat!edit.action?id=<s:property value="id" />" title="编辑">[编辑]</a> 
			</td>
		</tr>
	</s:iterator>

</table>
<s:if test="pager.pageSize>0">
				<div class="pagerBar">
					<input type="button" class="deleteButton" url="item_cat!delete.action" value="删 除"  hidefocus="true" />
					
					<input type="button" class="deleteButton" url="item_cat!importItemCat.action" value="导入"  hidefocus="true" />
			<jsp:include page="/jsp/page.jsp"></jsp:include>
				</div>
			</s:if>
			<s:else>
				<div class="noRecord">
					没有找到任何记录!
				</div>
			</s:else>
</form>
</div>
</body>
</html>

 
